package com.chen.demo04;

import org.junit.Test;

public class MyTest {
    @Test
    public void test1(){
        Service service = new ServiceImpl();
        MyProxyInvocation myProxyInvocation = new MyProxyInvocation();
        myProxyInvocation.setTarget(service);
        Service proxy = (Service)myProxyInvocation.getProxy();
        proxy.add();
    }

}
